package io.filterstream;

import java.io.IOException;
import java.io.PushbackInputStream;

public class PushbackInputStreamDemo {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		PushbackInputStream in = new PushbackInputStream(System.in, 5);
		in.unread(0);
		in.unread(1);
		in.unread(2);
		System.out.println(in.read( ));
		System.out.println(in.read( ));
		System.out.println(in.read( ));



	}

}
